package com.ruoyi.APPMS.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 购买零部件对象 buypart
 *
 * @author 任容
 * @date 2023-07-03
 */
@TableName("part")
public class Buypart implements Serializable {

    @TableField(exist = false)
    private String contactnumber;

    @TableField(exist = false)
    private String address;

    /** 零件ID */
    @TableId(type = IdType.AUTO)
    private Long partid;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 所属供应商 */
    @Excel(name = "所属供应商")
    private Long supplierid;
    @Excel(name = "所属供应商名称")
    @TableField(exist = false)
    private String suppliername;

    /** 所在仓库 */
    @Excel(name = "所在仓库")
    private Long warehouseid;

    /** 客户 */
    @Excel(name = "客户")
    private Long customerid;

    /** 销售员 */
    @Excel(name = "销售员")
    private Long salespersonid;

    /** 零件名称 */
    @Excel(name = "零件名称")
    private String partname;

    /** 进价 */
    @Excel(name = "进价")
    private Long primeprice;

    /** 售价 */
    @Excel(name = "售价")
    private Long price;

    private String modified;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 部件类型 */
    @Excel(name = "部件类型")
    private String type;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private String createtime;

    /** 修改时间 */
    @Excel(name = "修改时间")
    private String modifytime;

    /** 删除标记 */
    @TableLogic
    private Long deleted;

    /** 零件数量 */
    @Excel(name = "零件数量")
    private Long quantity;
}
